import request from "../index";

export default class PlatformRequest {
  // 获取平台信息
  public static getPLat(params: any) {
    return request({
      url: "/platform",
      params,
      method: "get",
    });
  }

  // 创建平台
  public static addPlat(data: any) {
    return request({
      url: "/platform",
      data,
      method: "post",
    });
  }

  // 修改平台信息
  public static editPLat(data: any) {
    return request({
      url: "/platform",
      data,
      method: "put",
    });
  }

  // 删除平台
  public static deletePlat(params: any) {
    return request({
      url: "/platform",
      params,
      method: "delete",
    });
  }
  // 获取平台列表
  public static getPlatList(params: any) {
    return request({
      url: "/platform/list",
      params,
      method: "get",
    });
  }
  // 获取全部平台
  public static getPlatAll() {
    return request({
      url: "/platform/all",
      method: "get",
    });
  }
}
